package com.chixing.vo;


import com.chixing.pojo.*;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class ProductDetailVO implements Serializable {
  //商品信息
  private Product product;
  //商品图片
  private List<ProductPicInfo> productPicInfo;
  //商品规格
  private List<Double> specs;
  //商品评论信息
  private Map<Comment, Customer> reviewProduct;

  //用户对评论的点赞信息。
  private List<Good> goodList;

  public ProductDetailVO(Product product, List<ProductPicInfo> productPicInfo, List<Double> specs, Map<Comment, Customer> reviewProduct, List<Good> goodList) {
    this.product = product;
    this.productPicInfo = productPicInfo;
    this.specs = specs;
    this.reviewProduct = reviewProduct;
    this.goodList = goodList;
  }

  public ProductDetailVO() {
  }

  public Product getProduct() {
    return product;
  }

  public void setProduct(Product product) {
    this.product = product;
  }

  public List<ProductPicInfo> getProductPicInfo() {
    return productPicInfo;
  }

  public void setProductPicInfo(List<ProductPicInfo> productPicInfo) {
    this.productPicInfo = productPicInfo;
  }

  public List<Double> getSpecs() {
    return specs;
  }

  public void setSpecs(List<Double> specs) {
    this.specs = specs;
  }

  public Map<Comment, Customer> getReviewProduct() {
    return reviewProduct;
  }

  public void setReviewProduct(Map<Comment, Customer> reviewProduct) {
    this.reviewProduct = reviewProduct;
  }

  public List<Good> getGoodList() {
    return goodList;
  }

  public void setGoodList(List<Good> goodList) {
    this.goodList = goodList;
  }

  @Override
  public String toString() {
    return "ProductDetailVO{" +
      "product=" + product +
      ", productPicInfo=" + productPicInfo +
      ", specs=" + specs +
      ", reviewProduct=" + reviewProduct +
      ", goodList=" + goodList +
      '}';
  }
}
